.class Les/re$a;
.super Landroid/os/Handler;
.source "MergeRender.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/re;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Les/re;


# direct methods
.method constructor <init>(Les/re;Landroid/os/Looper;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/re$a;->a:Les/re;

    invoke-direct {p0, p2}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 7

    const/4 p1, 0x1

    .line 1
    invoke-virtual {p0, p1}, Landroid/os/Handler;->removeMessages(I)V

    .line 2
    iget-object v0, p0, Les/re$a;->a:Les/re;

    invoke-static {v0}, Les/re;->a(Les/re;)Les/qe;

    move-result-object v0

    if-nez v0, :cond_0

    return-void

    .line 3
    :cond_0
    iget-object v0, p0, Les/re$a;->a:Les/re;

    invoke-static {v0}, Les/re;->a(Les/re;)Les/qe;

    move-result-object v0

    iget-object v0, v0, Les/qe;->b:Ljava/lang/String;

    const-string v1, "image"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    const-string v2, "video"

    if-eqz v0, :cond_1

    .line 4
    iget-object v0, p0, Les/re$a;->a:Les/re;

    invoke-static {v0}, Les/re;->a(Les/re;)Les/qe;

    move-result-object v0

    iget-object v3, p0, Les/re$a;->a:Les/re;

    invoke-static {v3}, Les/re;->b(Les/re;)Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;

    move-result-object v3

    invoke-virtual {v3}, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->getCurrentPosition()I

    move-result v3

    iput v3, v0, Les/qe;->h:I

    goto :goto_0

    .line 5
    :cond_1
    iget-object v0, p0, Les/re$a;->a:Les/re;

    invoke-static {v0}, Les/re;->a(Les/re;)Les/qe;

    move-result-object v0

    iget-object v0, v0, Les/qe;->b:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 6
    iget-object v0, p0, Les/re$a;->a:Les/re;

    invoke-static {v0}, Les/re;->a(Les/re;)Les/qe;

    move-result-object v0

    iget-object v3, p0, Les/re$a;->a:Les/re;

    invoke-static {v3}, Les/re;->c(Les/re;)Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    move-result-object v3

    invoke-virtual {v3}, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;->getCurrentPosition()I

    move-result v3

    iput v3, v0, Les/qe;->h:I

    .line 7
    :cond_2
    :goto_0
    iget-object v0, p0, Les/re$a;->a:Les/re;

    invoke-virtual {v0}, Les/re;->a()J

    move-result-wide v3

    .line 8
    iget-object v0, p0, Les/re$a;->a:Les/re;

    invoke-static {v0}, Les/re;->d(Les/re;)Les/se;

    move-result-object v0

    if-eqz v0, :cond_3

    .line 9
    iget-object v0, p0, Les/re$a;->a:Les/re;

    invoke-static {v0}, Les/re;->d(Les/re;)Les/se;

    move-result-object v0

    long-to-int v4, v3

    const/4 v3, 0x0

    invoke-interface {v0, v4, v3}, Les/se;->a(IZ)V

    .line 10
    :cond_3
    iget-object v0, p0, Les/re$a;->a:Les/re;

    invoke-static {v0}, Les/re;->a(Les/re;)Les/qe;

    move-result-object v0

    iget-object v0, v0, Les/qe;->b:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_4

    iget-object v0, p0, Les/re$a;->a:Les/re;

    invoke-static {v0}, Les/re;->a(Les/re;)Les/qe;

    move-result-object v0

    iget v0, v0, Les/qe;->h:I

    int-to-long v3, v0

    iget-object v0, p0, Les/re$a;->a:Les/re;

    invoke-static {v0}, Les/re;->a(Les/re;)Les/qe;

    move-result-object v0

    iget-wide v5, v0, Les/qe;->d:J

    cmp-long v0, v3, v5

    if-ltz v0, :cond_4

    .line 11
    iget-object p1, p0, Les/re$a;->a:Les/re;

    invoke-static {p1}, Les/re;->a(Les/re;)Les/qe;

    move-result-object v0

    invoke-static {p1, v0, v1}, Les/re;->a(Les/re;Les/qe;Ljava/lang/Runnable;)V

    .line 12
    iget-object p1, p0, Les/re$a;->a:Les/re;

    invoke-static {p1}, Les/re;->e(Les/re;)V

    goto :goto_1

    .line 13
    :cond_4
    iget-object v0, p0, Les/re$a;->a:Les/re;

    invoke-static {v0}, Les/re;->a(Les/re;)Les/qe;

    move-result-object v0

    iget-object v0, v0, Les/qe;->b:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    iget-object v0, p0, Les/re$a;->a:Les/re;

    invoke-static {v0}, Les/re;->a(Les/re;)Les/qe;

    move-result-object v0

    iget v0, v0, Les/qe;->h:I

    int-to-long v2, v0

    iget-object v0, p0, Les/re$a;->a:Les/re;

    invoke-static {v0}, Les/re;->a(Les/re;)Les/qe;

    move-result-object v0

    iget-wide v4, v0, Les/qe;->f:J

    cmp-long v0, v2, v4

    if-ltz v0, :cond_5

    .line 14
    iget-object p1, p0, Les/re$a;->a:Les/re;

    invoke-static {p1}, Les/re;->a(Les/re;)Les/qe;

    move-result-object v0

    invoke-static {p1, v0, v1}, Les/re;->a(Les/re;Les/qe;Ljava/lang/Runnable;)V

    .line 15
    iget-object p1, p0, Les/re$a;->a:Les/re;

    invoke-static {p1}, Les/re;->e(Les/re;)V

    goto :goto_1

    :cond_5
    const-wide/16 v0, 0x32

    .line 16
    invoke-virtual {p0, p1, v0, v1}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z

    :goto_1
    return-void
.end method
